package br.ufpe.cin.rdfilter.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the source database table.
 * 
 */
@Entity
@Table(name="source")
@NamedQueries({
	@NamedQuery(name = "Source.findAll", query = "SELECT s FROM Source s"),
	@NamedQuery(name = "Source.findSource", query = "SELECT s FROM Source s WHERE s.label = ?1")
})
public class Source implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="id_source_seq", sequenceName="id_source_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_source_seq")
	@Column(unique=true, nullable=false)
	private Integer id;

	@Column(length=2147483647)
	private String label;

	@Column(length=2147483647)
	private String url;

	public Source() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}